package cn.edu.gsau.info.controller;

import cn.edu.gsau.info.models.Huojiangdengji;
import cn.edu.gsau.info.models.ResponseResult;
import cn.edu.gsau.info.service.impl.HuojiangdengjiServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("huojiangdengji")
public class HuojiangdengjiController {
    @Autowired
    HuojiangdengjiServiceImpl huojiangdengjiService;


    @RequestMapping("findall")
    public ResponseResult findAll(){
        List<Huojiangdengji> list = huojiangdengjiService.list();
        return new ResponseResult(200,"成功",list);
    }

}
